package com.yc.qunxing.mapper;

import com.yc.qunxing.entity.Drivers;
import com.yc.qunxing.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 鹏哥
 * @since 2024-05-23
 */
public interface UsersMapper extends BaseMapper<Users> {

    @Update("UPDATE users SET raffle_num = #{raffleNum}")
    void updateRaffleNum(int i);


    @Select("SELECT username,phone_number from users where id=#{userId}")
    Users getUserDetailsById(Integer userId);
}
